package com.crazyhat.crazyhat.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crazyhat.crazyhat.entity.AdminMessage;

/**
 * <p>
 * 给系统管理员的消息 服务类
 * </p>
 *
 * @author crazyhat
 * @since 2024-07-05
 */
public interface IAdminMessageService extends IService<AdminMessage> {


    /**
     *
     * @param pageNum
     * @param pageSize
     * @return
     */
    Page<AdminMessage> checkMassages(int pageNum, int pageSize);

    boolean approveRequest(Integer messageId, boolean approve);

    /**
     * 根据社团id查询这个社团的创建请求信息
     *
     */
    public AdminMessage getMessage(int clubId);
}
